package com.laixu.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import java.util.Date;
import lombok.Data;


@Component
@Data
public class Category {
    @Value("1")
    private Integer id;
    @Value("西游记")
    private String name;
    @Value("西游记是一个西游记")
    private String description;
    @Value("1")
    private Integer parentId;

    // Getters and Setters
    public Integer getId() { return id; }
    public void setId(Integer id) { this.id = id; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public String getDescription() { return description; }
    public void setDescription(String description) { this.description = description; }
    public Integer getParentId() { return parentId; }
    public void setParentId(Integer parentId) { this.parentId = parentId; }
}